<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/24
  Time: 11:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script>
    $(function () {
        $("#typeid").val(${typeid});
    })
</script>
<%-- 周依博！！菜品修改页面测试--%>
<body>
<form action="UpdateFoodServlet" method="post" enctype="multipart/form-data">
编号：  <span>${food.fid}</span>
    <input type="hidden" name="fid" value="${requestScope.food.fid}">
名称：<input type="text" name="name" value="${requestScope.food.name}">
价格：<input type="text" name="price" value="${requestScope.food.price}">
 类型：<select name="typeid" id="typeid">
    <c:forEach items="${typeList}" var="t">
        <option value="${t.tid}">${t.type}</option>
    </c:forEach>
</select><br>
原图片：<div><img style="width: 100px;height: 100px" src="upfiles/${requestScope.food.pic}"> <br>
 选择图片： <input type="file" name="pic">
</div>

    <br>
    <input type="submit" value="提交">
</form>
</body>
</html>
